﻿

using IotContract.Dtos.Clients;
using IotContract.Dtos.Servers;
using IotContract.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Interfaces.Process;
/// <summary>
/// 针对设备类型的处理程序
/// </summary>
public interface IServerProcessHandle
{
    /// <summary>
    /// 针对处理进程
    /// </summary>
    public string ProcessName { get; set; }
    /// <summary>
    /// 针对设备类型进行处理
    /// </summary>
    public IotEquipType ProcessType { get; set; }
  
    /// <summary>
    /// 解析数据
    /// </summary>
    /// <param name="equips">所有设备</param>
    /// <param name="tags">设备的所有点位</param>
    /// <returns></returns>
    Task<bool> ParsingData();
    /// <summary>
    /// 数据处理
    /// </summary>
    /// <returns></returns>
    Task<bool> ProcessData();
    /// <summary>
    /// 调度处理
    /// </summary>
    /// <returns></returns>
    Task<bool> ProcessOrder();
    /// <summary>
    /// 告警处理
    /// </summary>
    /// <returns></returns>
    Task<bool> ProcessWarn();
    /// <summary>
    /// 停止
    /// </summary>
    /// <returns></returns>
    bool Stop();
}
